/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.server.dao;

import com.niiuzu.server.dao.impl.FeedChannelDaoImpl;
import com.niiuzu.server.dao.impl.FeedEntryDaoImpl;
import com.niiuzu.server.dao.impl.MailDaoImpl;
import com.niiuzu.server.dao.impl.ParameterDaoImpl;
import com.niiuzu.server.dao.impl.UserDaoImpl;

/**
 * Fournit les instances de DAO.
 */
public final class DaoFactory {

	/**
	 * Construit une nouvelle instance de {@link DaoFactory}.
	 */
	private DaoFactory() {
	}

	/**
	 * Fournit une instance de {@link FeedChannelDao}.
	 */
	public static FeedChannelDao getFeedChannelDao() {
		return new FeedChannelDaoImpl();
	}

	/**
	 * Fournit une instance de {@link FeedEntryDao}.
	 */
	public static FeedEntryDao getFeedEntryDao() {
		return new FeedEntryDaoImpl();
	}

	/**
	 * Fournit une instance de {@link UserDao}.
	 */
	public static UserDao getUserDao() {
		return new UserDaoImpl();
	}

	/**
	 * Fournit une instance de {@link ParameterDao}.
	 */
	public static ParameterDao getParameterDao() {
		return new ParameterDaoImpl();
	}

	/**
	 * Fournit une instance de {@link MailDao}.
	 */
	public static MailDao getMailDao() {
		return new MailDaoImpl();
	}
}
